package com.cx.webtest;

import com.cx.webtest.util.JdbcUtil;
import com.cx.webtest.util.druid.JdbcDruidUtil;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Statement;

/**
 * @author jxau_scf
 * @date 2021/8/10 - 20:12
 */
public class test {

    public static void main(String[] args) throws SQLException {
//        for (int i = 0;i<20;i++){
//            Connection connection = JdbcUtil.getConnection();
//            System.out.println(connection);
//        }

//        Connection connection = JdbcUtil.getConnection();
//        System.out.println(connection);

//        Connection connect = JdbcDruidUtil.getConnect();
//        System.out.println(connect);

        for (int i = 0;i<20;i++){
            Connection connection = JdbcDruidUtil.getConnect();
            System.out.println(connection);
        }
    }
}
